'''
Created on Jan 26, 2010

@author: christianp
'''
from BruTile.TileSchema import TileSchema
from BruTile.Extent import Extent

class UTestData(object):
    
    @staticmethod
    def create_tile_schema():
        resolutions = [156543.033900000, 78271.516950000, 39135.758475000, 19567.879237500, 
            9783.939618750, 4891.969809375, 2445.984904688, 1222.992452344, 
            611.496226172, 305.748113086, 152.874056543, 76.437028271, 
            38.218514136, 19.109257068, 9.554628534, 4.777314267, 
            2.388657133, 1.194328567, 0.597164283]
        
        tile_schema = TileSchema()
        tile_schema.set_name("OpenStreetMap")
        tile_schema.set_resolutions(resolutions)
        tile_schema.set_origin_x(-20037508.342789)
        tile_schema.set_origin_y(20037508.342789)
        tile_schema.set_axis("AxisInverted")
        tile_schema.set_extent(Extent(-20037508.342789, -20037508.342789, 20037508.342789, 20037508.342789))
        tile_schema.set_height(256)
        tile_schema.set_width(256)
        tile_schema.set_format("png")
        tile_schema.set_src("EPSG:900913")
        
        return tile_schema;

    def __init__(self):
        '''
        Constructor
        '''
        